package com.navi.heartbeat.entity;

/**
 * ErrorCode
 *
 * @author Matthew
 * @date 2018-07-04
 */
public enum ErrorCode {

  FILE_LOADER_UNKNOWN_EXCEPTION("1000000", "文件解析异常"),

  RTM_UNKNOWN_EXCEPTION("2000000", "RTM异常"),

  DB_UNKNOWN_EXCEPTION("3000000", "数据库异常"),

  DB_SQL_EXECUTE_EXCEPTION("3000001", "数据库异常"),

  REDIS_UNKNOWN_EXCEPTION("4000000", "Redis异常"),

  REDIS_JEDIS_POOL_EXCEPTION("4000001", "Jedis获取连接池异常"),

  SERVICE_UNKNOWN_EXCEPTION("5000000", "服务异常"),

  MQ_UNKNOWN_EXCEPTION("6000000", "MQ异常"),

  MQ_DECLARE_EXCEPTION("6000001", "MQ声明异常"),

  MQ_OVERSTOCK_EXCEPTION("6000001", "MQ堆积异常"),

  MQ_CONNECTION_EXCEPTION("6000002", "MQ连接异常"),

  ETL_UNKNOWN_EXCEPTION("7000000", "ETL异常"),

  ETL_TIMEOUT_EXCEPTION("7000001", "ETL超时异常"),

  HEART_BEAT_UNKNOWN_EXCEPTION("8000000", "HeartBeat异常"),

  HEART_BEAT_HTTP_CLIENT_EXCEPTION("8000001", "HeartBeat HttpClient 异常!"),

  HEART_BEAT_GP_GLASS_OPE_EVTTIME("8000002", "已超过1小时没有数据更新!"),
  ;
  public String code;
  public String desc;
  ErrorCode(String code, String desc) {
    this.code = code;
    this.desc = desc;
  }
}
